from base import HTMLTestRunnerNew
import unittest
import time

from base.tools import get_path
discover = unittest.defaultTestLoader.discover(f"{get_path()}/case", "test_*.py")
with open(f"{get_path()}/report/report{time.strftime('%Y%m%d-%H-%M-%S')}.html", 'wb+') as file:
    runner = HTMLTestRunnerNew.HTMLTestRunner(stream=file,
                                              title="数据分发内测环境ui回归测试用例",
                                              description="数据分发版本1.5.0",
                                              tester="小王")
    runner.run(discover)
# 控制环境的话去